From: Julien Grall Date: Thu, 29 Jan 2015 14:50:00 +0000 (+0100) Subject: random: add missing include xen/cache.h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3813 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=685b1dcb519e01ad63edc7f3ca7af6383372d41b;p=xen.git random: add missing include xen/cache.h The commit f6c9698 " x86: allow reading MSR_IA32_TSC with XENPF_resource_op" introduced a built regression on ARM platform. random.c:8:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘boot_random’ unsigned int __read_mostly boot_random; ^ The define __read_mostly is defined in asm/cache.h which is included by other headers on x86 but not on ARM. Include xen/cache.h to fix the build. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/common/random.c b/xen/common/random.c index cb9187ce92..fb805b0ecd 100644 --- a/xen/common/random.c +++ b/xen/common/random.c @@ -1,3 +1,4 @@ +#include #include #include #include